
<?php
unset($_SESSION['name']);
session_start();
$config = include_once '../public/config.php';
include_once '../public/function.php';
$result = select($config, 'wenzhang');
// var_dump($result);



?>

<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>个人博客模板（寻梦）</title>
<meta name="keywords" content="个人博客模板,博客模板" />
<meta name="description" content="寻梦主题的个人博客模板，优雅、稳重、大气,低调。" />
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link href="css/base.css" rel="stylesheet">
<link href="css/index.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/modernizr.js"></script>
<![endif]-->
</head>
<body>
<header>
  <div id=""><a href="/"></a></div>
  <nav class="topnav" id="topnav">
  <a href="index.php"><span>首页</span><span class="en">Protal</span></a>


  <a href="message.php"><span>留言板</span><span class="en">Life</span></a>
  <a href="moodlist.php"><span>说说</span><span class="en">Doing</span></a>
  <a href="share.php"><span>访客</span><span class="en">Share</span></a>
  <a href="knowledge.php"><span>关于我</span><span class="en">Learn</span></a>
  <a href="../admin/admin/admin.php"><span>管理员</span><span class="en">administrator</span></a>
  </nav>

  </nav>
</header>
<div class="banner">
  <section class="box">
    <ul class="texts">
      <p>恰同学少年，东西散相见难</p>
      <p>对啊，你才二十多岁</p>
      <p>你不努力的二十岁，就是你举步维艰的三十岁</p>
    </ul>
    <div class="avatar"><a href="#"><span>尚家欢</span></a> </div>
  </section>
</div>
<div class="template">
  <div class="box">
    <h3>
      <p><span>个人博客</span>模板 Templates</p>
    </h3>
    <ul>
      <li><a href="/"  target="_blank"><img src="images/01.jpg"></a><span>仿新浪博客风格・梅――古典个人博客模板</span></li>
      <li><a href="/" target="_blank"><img src="images/02.jpg"></a><span>黑色质感时间轴html5个人博客模板</span></li>
      <li><a href="/"  target="_blank"><img src="images/03.jpg"></a><span>Green绿色小清新的夏天-个人博客模板</span></li>
      <li><a href="/" target="_blank"><img src="images/04.jpg"></a><span>女生清新个人博客网站模板</span></li>
      <li><a href="/"  target="_blank"><img src="images/02.jpg"></a><span>黑色质感时间轴html5个人博客模板</span></li>
      <li><a href="/"  target="_blank"><img src="images/03.jpg"></a><span>Green绿色小清新的夏天-个人博客模板</span></li>
    </ul>
  </div>
</div>
<article>
  <h2 class="title_tj">
 <a href="#" class="btn btn-primary" disabled="true">文章分类 </a>
 <a href="index.php" class="btn btn-success">全部分类 </a>
  <a href="index2.php?sort=1" class="btn btn-info">PHP学习 </a>
  <a href="index2.php?sort=2" class="btn btn-warning">娱乐八卦 </a>
  <a href="index2.php?sort=3"  class="btn btn-danger">大学生活 </a>
  <a href="index2.php?sort=4" class="btn btn-primary">历史 </a>
  <!-- <form action="sort_index2.php" method="post" >
    <p> <button type="button" class="btn btn-primary"disabled="true"><a href="sort_index2.php">文章分类</a></button></p>
    <button type="button" class="btn btn-success" value="0" name="all">全部分类</button>
     &nbsp; &nbsp;    &nbsp; &nbsp;  &nbsp; 
    <input type="text" class="btn btn-info" value="1" onclick="window.open("sort_index2.php")"  name="php">PHP学习</input>
 
     &nbsp;  &nbsp;    &nbsp; &nbsp;  &nbsp; 
    <button type="button" class="btn btn-warning" value="2" name="yule">娱乐八卦</button>
     &nbsp;  &nbsp;     &nbsp; &nbsp;  &nbsp; 
    <button type="button" class="btn btn-danger" value="3" name="daxue">大学生活</button>
     &nbsp;  &nbsp;      &nbsp; &nbsp;  &nbsp; 
    <button type="button" class="btn btn-primary" value="4" name="lishi">历史</button>
     &nbsp;  &nbsp;       &nbsp; 
    <button type="button" class="btn btn-info" value="5" name="genduo" ></button>
     &nbsp;  &nbsp;       &nbsp; &nbsp;  &nbsp; 
  </form> -->
  </h2>
  <div class="bloglist left" id="left">



    <?php

foreach ($result as $v) {

    echo '<h3>' . $v['title'] . '</h3>';
    echo '<figure><img src="../admin/wenzhang/' . $v['pic'] . '"></figure>';
    echo '<ul>';
    echo '<p>' . mb_substr($v['content'], 0, 200, 'utf-8') . '</p>';
    echo '<a title="/" href="text1.php?id=' . $v["id"].'&dianji='.$v["dianji"].'" target="_blank" class="readmore">阅读全文>></a>';
    echo ' </ul>';
   
    echo '<p class="dateview"><span>2017-9-06</span><span>作者：尚家欢</span><span>个人博客：[<a href="https://www.baidu.com/">程序生活</a>]</span><span>点击数量：<a href="">'.$v["dianji"].'</a></span></p>';
}
?>

  </div>
  <aside class="right">

  <?php
if ($_SESSION['islogin'] == 1) {
    echo "

<div><img src='./images/weather_bg.jpg'  style:>

<p style='color: #fd8a61;'>欢迎<a href='' style='text-decoration: '>{$_SESSION['name']}</a>来到我的博客</p>
<a href='outindex.php'>退出登录</a>


</div>



";
} else {
    echo "<form action='doindex.php' method='post'>
    <div class='weather'><a href=' class='links'></a> <a href=' class='links'></a>
    账号：<input type='text' name='user'>
    密码：<input type='password' name='pwd'>
    <br>
    <hr/>
    <input type='submit' value='确认提交'>
    <a href='./register/register.php' style='color: #0080FF;'>去注册</a>
    <a href='' style='color: #0080FF;'>忘记密码？</a>
    </div>

    <div class='news'>


  </form>";
}
?>
    <hr/>
    <h3>
      <p>最新<span>文章</span></p>
    </h3>
    <ul class="rank">

      <li><a href="/" title="免费收录网站搜索引擎登录口大全" target="_blank">免费收录网站搜索引擎登录口大全</a></li>
      <li><a href="/" title="做网站到底需要什么?" target="_blank">做网站到底需要什么?</a></li>
      <li><a href="/" title="企业做网站具体流程步骤" target="_blank">企业做网站具体流程步骤</a></li>
      <li><a href="/" title="建站流程篇――教你如何快速学会做网站" target="_blank">建站流程篇――教你如何快速学会做网站</a></li>
      <li><a href="/" title="box-shadow 阴影右下脚折边效果" target="_blank">box-shadow 阴影右下脚折边效果</a></li>
      <li><a href="/" title="打雷时室内、户外应该需要注意什么" target="_blank">打雷时室内、户外应该需要注意什么</a></li>
    </ul>
    <h3 class="ph">
      <p>点击<span>排行</span></p>
    </h3>
    <ul class="paih">
      <li><a href="/" title="Column 三栏布局 个人网站模板" target="_blank">Column 三栏布局 个人网站模板</a></li>
      <li><a href="/" title="withlove for you 个人网站模板" target="_blank">with love for you 个人网站模板</a></li>
      <li><a href="/" title="免费收录网站搜索引擎登录口大全" target="_blank">免费收录网站搜索引擎登录口大全</a></li>
      <li><a href="/" title="做网站到底需要什么?" target="_blank">做网站到底需要什么?</a></li>
      <li><a href="/" title="企业做网站具体流程步骤" target="_blank">企业做网站具体流程步骤</a></li>
    </ul>
    <h3 class="links">
      <p>友情<span>链接</span></p>
    </h3>
    <ul class="website">
      <li><a href="/">个人博客</a></li>
      <li><a href="index.php">尚家欢个人博客</a></li>
      <li><a href="http://www.jianshu.com/u/2e025777e749">多迪技术</a></li>
      <li><a href="http://www.jianshu.com/">简书</a></li>
    </ul>
    </div>
    <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
    <script type="text/javascript" id="bdshell_js"></script>
    <script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
    <!-- Baidu Button END -->
    <a href="/" class="weixin"> </a></aside>
</article>
<footer>
  <p>Design by DanceSmile <a href="http://www.miitbeian.gov.cn/" target="_blank">蜀ICP备11002373号-1</a> <a href="/">网站统计</a></p>
</footer>
<script src="js/silder.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
